using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Rsd.Faith.Models
{
    [Table("info_房屋信息表", "info__fang_wu_xin_xi_biao", "id")]
    [Serializable]
    public class InfoFangWuXinXiBiaoModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 编号
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("bian_hao", "编号", 20, 40)]
        [DisplayName("编号")]
        public string BianHao { get; set; }
        /// <summary>
        /// 账户编号
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("zhang_hu_bian_hao", "账户编号", 21, 50)]
        [DisplayName("账户编号")]
        public string ZhangHuBianHao { get; set; }
        /// <summary>
        /// 业主姓名
        /// </summary>
        [StringType("ye_zhu_xing_ming", "业主姓名", 22, 100)]
        [DisplayName("业主姓名")]
        public string YeZhuXingMing { get; set; }

        /// <summary>
        /// 小区编号
        /// </summary>
        [StringType("xiao_qu_bian_hao", "小区编号", 24, 60)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        /// 建筑面积
        /// </summary>
        [NumericType("jian_zhu_mian_ji", "建筑面积", 26, 10, 3)]
        [DisplayName("建筑面积")]
        public decimal JianZhuMianJi { get; set; }

        /// <summary>
        /// 楼栋号
        /// </summary>
        [StringType("lou_dong_hao", "楼栋号", 28, 20)]
        [DisplayName("楼栋号")]
        public string LouDongHao { get; set; }

        /// <summary>
        /// 单元号
        /// </summary>
        [StringType("dan_yuan_hao", "单元号", 30, 10)]
        [DisplayName("单元号")]
        public string DanYuanHao { get; set; }

        /// <summary>
        /// 室号
        /// </summary>
        [StringType("shi_hao", "室号", 32, 20)]
        [DisplayName("室号")]
        public string ShiHao { get; set; }

        /// <summary>
        /// 首期缴存金额
        /// </summary>
        [NumericType("shou_qi_jiao_cun_jin_e", "首期缴存金额", 34, 10, 3)]
        [DisplayName("首期缴存金额")]
        public decimal ShouQiJiaoCunJinE { get; set; }

        /// <summary>
        /// 备用地址
        /// </summary>
        [StringType("bei_yong_di_zhi", "备用地址", 36, 100)]
        [DisplayName("备用地址")]
        public string BeiYongDiZhi { get; set; }

        /// <summary>
        /// 房屋类型
        /// </summary>
        [StringType("fang_wu_lei_xing", "房屋类型", 38, 10)]
        [DisplayName("房屋类型")]
        public FangWuLeiXing FangWuLeiXing { get; set; }

        /// <summary>
        /// 房屋性质
        /// </summary>
        [StringType("fang_wu_xing_zhi", "房屋性质", 40, 10)]
        [DisplayName("房屋性质")]
        public FangWuXingZhi FangWuXingZhi { get; set; }

        /// <summary>
        /// 是否有电梯
        /// </summary>
        [IntegerType("shi_fou_you_dian_ti", "是否有电梯", 42, 10)]
        [DisplayName("是否有电梯")]
        public int ShiFouYouDianTi { get; set; }

        /// <summary>
        /// 房屋信息状态
        /// </summary>
        [StringType("zhuang_tai", "状态", 44, 10)]
        [DisplayName("状态")]
        public FangWuZhuangTai ZhuangTai { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public InfoFangWuXinXiBiaoModel()
        { }

    }
}
